cmake_minimum_required(VERSION 3.10)
project(RapidRoll)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3")

find_package(PkgConfig REQUIRED)
pkg_check_modules(GTKMM4_LINK_LIBRARIES REQUIRED IMPORTED_TARGET gtkmm-4.0)

FILE(GLOB SOURCE_FILE "*.cpp" "*.h")
add_executable(${PROJECT_NAME} ${SOURCE_FILE})

target_link_libraries(${PROJECT_NAME} PkgConfig::GTKMM4_LINK_LIBRARIES) 